/*
 * @ModuleName:
 * @Author: zhuzhaofeng
 * @Date: 2020-05-09 11:47:19
 */
import Subject from "../observer/Subject";
import Observer from "../observer/Observer";

export const testObserver = () => {
  console.log(1)
  const subject = new Subject();
  const o1 = new Observer("01", subject);
  const o2 = new Observer("02", subject);
  const o3 = new Observer("03", subject);

  subject.setState(1);
  subject.setState(2);
  subject.setState(3);
};
